package com.hznc.wcs.entity.bpm;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.diboot.core.entity.BaseModel;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

/**
* 自定义流程表单 Entity 定义
* @author MyName
* @version 1.0
* @date 2024-06-20
* Copyright © MyCorp
*/

@TableName("mdl_bpm_form")
@Getter @Setter @Accessors(chain = true)
public class BpmForm extends BaseModel {
    private static final long serialVersionUID = 1195528984572852702L;
     /**
     * 表单名
     */
     @NotNull(message = "表单名不能为空")
     @Length(max=64, message="表单名长度应小于64")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String name;

     /**
      * 表单类型
      */
     @NotNull(message = "表单类型不能为空")
     @Length(max=100, message="表单类型长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String type;

     /**
     * 开启状态
     */
     @NotNull(message = "开启状态不能为空")
     @TableField()
     private String status;

     /**
     * 表单配置
     */
     @NotNull(message = "表单配置不能为空")
     @TableField()
     private String conf;

     /**
     * 表单项的数组
     */
     @NotNull(message = "表单项的数组不能为空")
     @TableField()
     private String fields;

     /**
     * 备注
     */
     @Length(max=255, message="备注长度应小于255")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String remark;


}